package com.learn.pojo;

import java.util.Arrays;

/**
 * @author DJJ_F
 * @version 1.0
 * @date 2025/01/24
 * @description
 */
public class User {
    private Integer id;
    private String  username;
    private String  password;
    private Integer gender;
    private String[]  hobbies;
    private String  intro;

    public User() {
    }

    public User(Integer id, String username, String password, Integer gender, String[] hobbies, String intro) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.gender = gender;
        this.hobbies = hobbies;
        this.intro = intro;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String[] getHobbies() {
        return hobbies;
    }

    public void setHobbies(String[] hobbies) {
        this.hobbies = hobbies;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", gender=" + gender +
                ", hobbies=" + Arrays.toString(hobbies) +
                ", intro='" + intro + '\'' +
                '}';
    }
}
